package cpre556.project2.eclipsePlugin.support;

import java.util.Vector;

/**
 * Ignored Vulnerability
 * 
 * Extents Vulnerability to include the 3 lines around the vulnerability
 */
public class IgnoredVulnerability extends Vulnerability{
	/**
	 * 
	 */
	String predecessor1 = null;
	/**
	 * 
	 */
	String predecessor2 = null;
	/**
	 * 
	 */
	String predecessor3 = null;
	
	/**
	 * 
	 */
	String successor1 = null;
	/**
	 * 
	 */
	String successor2 = null;
	/**
	 * 
	 */
	String successor3 = null;
	
	/**
	 * Constructor
	 */
	public IgnoredVulnerability(){
		super();
	}
	
	/**
	 * Set predecessor1
	 * @param p1
	 */
	public void setPredecessor1(String p1){
		predecessor1 = p1;
	}
	/**
	 * Set predecessor2
	 * @param p1
	 */
	public void setPredecessor2(String p2){
		predecessor2 = p2;
	}
	/**
	 * Set predecessor3
	 * @param p1
	 */
	public void setPredecessor3(String p3){
		predecessor3 = p3;
	}
	
	/**
	 * Set successor1
	 * @param s1
	 */
	public void setSuccessor1(String s1){
		successor1 = s1;
	}
	/**
	 * Set successor2
	 * @param s2
	 */
	public void setSuccessor2(String s2){
		successor2 = s2;
	}
	/**
	 * Set successor3
	 * @param s3
	 */
	public void setSuccessor3(String s3){
		successor3 = s3;
	}
	
	/**
	 * Get predecessor1
	 * @return
	 */
	public String getPredecessor1(){
		return predecessor1;
	}
	/**
	 * Get predecessor2
	 * @return
	 */
	public String getPredecessor2(){
		return predecessor2;
	}
	/**
	 * Get predecessor3
	 * @return
	 */
	public String getPredecessor3(){
		return predecessor3;
	}
	/**
	 * Get successor1
	 * @return
	 */
	public String getSuccessor1(){
		return successor1;
	}
	/**
	 * Get successor2
	 * @return
	 */
	public String getSuccessor2(){
		return successor2;
	}
	/**
	 * Get successor3
	 * @return
	 */
	public String getSuccessor3(){
		return successor3;
	}
	
	/**
	 * Get XML safe predecessor1
	 * @return
	 */
	public Vector<String> getXMLSafePredecessor1(){
		return escapeXMLCharacters(predecessor1);
	}
	/**
	 * Get XML safe predecessor2
	 * @return
	 */
	public Vector<String> getXMLSafePredecessor2(){
		return escapeXMLCharacters(predecessor2);
	}
	/**
	 * Get XML safe predecessor3
	 * @return
	 */
	public Vector<String> getXMLSafePredecessor3(){
		return escapeXMLCharacters(predecessor3);
	}
	
	/**
	 * Get XML safe successor1
	 * @return
	 */
	public Vector<String> getXMLSafeSuccessor1(){
		return escapeXMLCharacters(successor1);
	}
	/**
	 * Get XML safe successor2
	 * @return
	 */
	public Vector<String> getXMLSafeSuccessor2(){
		return escapeXMLCharacters(successor2);
	}
	/**
	 * Get XML safe successor3
	 * @return
	 */
	public Vector<String> getXMLSafeSuccessor3(){
		return escapeXMLCharacters(successor3);
	}
}
